const http = require("http");
const url = require("url");

http.createServer((req, res) => {
    //获取GET方法的请求参数
    console.log(url.parse(req.url,true).query);
}).listen(80);